home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 04 - 1988 / 04.10 Oct 88 / MSSourcesLong / Corrections.h next >
Encoding:
C/C++ Source or Header  |  1987-06-23  |  6.5 KB  |  241 lines  |  [TEXT/EDIT]

  1. /*************************************************************************/
  2. /* 
  3.                     MSS Fri May 8, 1987 18:26:05
  4. */
  5. /*             Corrections to Consulair Mac C Header files               */
  6. /*                      corrections & omissions                          */
  7. /*                                                                       */
  8. /*              created October 15, 1985 David J. Burnard                */
  9. /*                                                                       */
  10. /*               Please add any items you find, and mail                 */
  11. /*                    the additional corrections to                      */
  12. /*                        burnard@lll-crg.ARPA                           */
  13. /*                                 or                                    */
  14. /*                                DJB                                    */  
  15. /*                      c/o 3 Guys with Computers                        */
  16. /*                            PO Box 7457                                */
  17. /*                        Berkeley, CA 94707                             */
  18. /*                                                                       */
  19. /*************************************************************************/
  20.  
  21. /* always include this file after Consulair's header files,
  22.       but before any custom header files, like IMLib.h */
  23.  
  24. /* Control.h */
  25.   #ifdef ControlLoaded
  26.   #endif
  27.   
  28. /* Desk.h */
  29.   #ifdef DeskLoaded
  30.   #endif
  31.   
  32. /* Dialog.h */
  33.   #ifdef DialogLoaded
  34.      /* left out DialogPeek */
  35.      typedef   DialogRecord   *DialogPeek;
  36.      /* misspelling again! */
  37.      #define DisposDialog(dialogPointer) DisposeDialog(dialogPointer)
  38.   #endif
  39. /* Events.h*/
  40. #ifdef EventLoaded /* add Char Code and Key Code masks for mess fielsd */
  41.  
  42.         #define        charCodeMask        0x000000FFL
  43.         #define        keyCodeMask        0x0000FF00L
  44. #endif
  45. /* Font.h */
  46. #ifdef FontLoaded
  47.             /* add constants for new fonts */
  48.         #define   cairo        11
  49.      #define   losAngeles   12
  50.      #define   times        20
  51.      #define   helvetica    21
  52.      #define   courier      22
  53.      #define   symbol       23
  54.      #define   taliesin     24
  55.      #define   kanji        25
  56.      
  57.      /* add Style for normal text...or use NIL */
  58.      #define   normalStyle    0
  59.   #endif
  60.  
  61. /* MacCDefs.h */
  62.   #ifdef MacCLoaded
  63.   #endif
  64. /* MacDefs.h */
  65.   #ifdef MacdefsLoaded
  66.      /* add OSType definition (4 char literal) */
  67.      typedef   long    OSType;
  68.      
  69.      /* add OSErr type definition and the null error */
  70.      typedef   short   OSErr;
  71.      #define   noErr   0
  72.   #endif
  73. /* add Fixed type and associated traps */
  74.   
  75.  #ifndef FixedLoaded
  76.   
  77.      #define FixedLoaded
  78.      
  79.      typedef   long   Fixed;
  80.      
  81.      #define   FixRound   (short)FixRound
  82.      #define   FixRatio   (Fixed)FixRatio
  83.      #define   FixMul     (Fixed)FixMul
  84.      
  85.   #endif
  86.  
  87. /* Memory.h */
  88.   #ifdef MemoryLoaded
  89.      /* spelling error...was MaxSize */
  90.      #define   maxSize  0x800000
  91.          
  92.   #endif
  93.  
  94. /* Menu.h */
  95.   #ifdef MenuLoaded
  96.      /* add constants for special chars */
  97.      #define   commandMark   '\021'
  98.      #define   checkMark     '\022'
  99.      #define   diamondMark   '\023'
  100.      #define   appleMark     '\024'
  101.   #endif
  102.   
  103. /* MiscMgr.h */
  104.   #ifdef MiscMgrLoaded
  105.   #endif
  106.  
  107. /* OsIO.h */
  108.    #ifdef OSioLoaded
  109.      /* spelling error...was rFNumErr */
  110.      #define   rfNumErr   -51
  111.      
  112.      /* add Finder attributes flags - wait till Apple corrects theirs */
  113.      #define   cfInited       0x0100
  114.      #define   cfHasChanged   0x0200
  115.      #define   cfIsBusy       0x0400
  116.      #define   cfNoCopy       0x0800
  117.      #define   cfSystemFile   0x1000
  118.      #define   cfHasBundle    0x2000
  119.      #define   cfInvisible    0x4000
  120.      #define   cfLocked       0x8000
  121.      
  122.      /* add Finder fdFlag values */
  123.      #define   fTrash        -3
  124.      #define   fDeskTop      -2
  125.      #define   fDisk          0
  126.      
  127.      /* add File System attribute flags */
  128.      #define   fsLocked       0x01
  129.      #define   fsNoCopy       0x40
  130.      #define   fsBusy         0x80
  131.      
  132.      
  133.      /* add read/write permissions */
  134.      #define   fsCurPerm    0
  135.      #define   fsRdPerm     1
  136.      #define   fsWrPerm     2
  137.      #define   fsRdWrPerm   3
  138.      
  139.      /* add ioPosMode settings */
  140.      #define   fsAtMark      0       /* at current position of mark - ignore ioPosOffset */
  141.      #define   fsFromStart   1       /* offset relative to beginning of file */
  142.      #define   fsFromLEOF    2       /* offset relative to logical end-of-file */
  143.      #define   fsFromMark    3       /* offset relative to current mark */
  144.      
  145.      /* add an equivalent to ioParam... */
  146.      typedef   struct __IO   IOParam;
  147.      
  148.   #endif
  149.  
  150. /* Osmisc.h */
  151.    #ifdef OSmiscLoaded
  152.      /* don't use these constants - use those above (OSio.h)... */
  153.      #undef   fHasBundle
  154.      #undef   fInvisible
  155.      
  156.      /* Pointer to a Queue Header */
  157.      typedef   QHdr   *QHdrPtr;
  158.    #endif
  159.  
  160. /* Packages.h */
  161.   #ifdef PackagesLoaded
  162.   
  163.      /* redefine SFReply to use fName as in IM */
  164.      #undef SFReply
  165.      typedef struct {
  166.        char    good;  
  167.        char    copy;
  168.        OSType  ftype;
  169.        short   vRefNum; 
  170.        short   version;
  171.        char    fName; 
  172.        char    Name[63]; 
  173.      } SFReply;
  174.      
  175.      /* constant for IUDateString() */
  176.      #define   abbrevDate  512         
  177.   #endif
  178.  
  179. /* pbDefs.h */
  180.   #ifdef pbDefsLoaded
  181.      /* spelling error...was PBGetVInfo() */
  182.      #define PBGetVolInfo(pbBlock, asynchFlag) (short)pbCall(pbBlock, asynchFlag, 0xA007)
  183.   #endif
  184.  
  185. /* Print.h */
  186.   #ifdef PrintLoaded
  187.   #endif
  188.  
  189. /* QuickDraw.h */
  190.   #ifdef QuickdrawLoaded
  191.  
  192.  
  193. /* QuickDraw global patterns */
  194. #define    gray             &(QD->gray)
  195. #define    dkGray        &(QD->dkGray)
  196. #define    ltGray        &(QD->ltGray)
  197. #define white        &(QD->white)
  198. #define black        &(QD->black)
  199.  
  200.  
  201.   #endif
  202.  
  203. /* Resource.h */
  204.   #ifdef ResourceLoaded
  205.      typedef   long   ResType;
  206.   #endif
  207.  
  208. /* TextEdit.h */
  209.   #ifdef TextEditLoaded
  210.      /* add constants for justification */
  211.      #define   teJustLeft     0
  212.      #define   teJustCenter   1
  213.      #define   teJustRight   -1
  214.    
  215.      /* change two fields of the TERec data structure: */
  216.      #define  teLength    telength   
  217.      #define  fontAscent  firstBL
  218.      
  219.      /* Funny TE Style constants */
  220.    #define    teNormal        0x0000
  221.    #define    teBold            0x0000
  222.    #define    teItalic        0x0000
  223.    #define    teUnderline        0x0000
  224.    #define    teOutline        0x0000
  225.    #define    teShadow        0x0000
  226.    #define    teCondense        0x0000
  227.    #define    teExtend        0x0000
  228.   #endif
  229.  
  230.  
  231. /* Window.h */
  232.     #ifdef WindowLoaded
  233.         /*see Vol IV */
  234.         
  235.         #define inZoomIn         7
  236.         #define inZoomOut         8
  237.         #define _ZOOMDOCPROC     8
  238.      
  239.        #undef    noShadowDBox
  240.     #endif
  241.